package com.ext.bootsecurity25.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class VisitController {
    @RequestMapping("/visitAdminPage")
    public String visitAdminPage() {
        log.info("访问admin页面成功");
        return "访问admin页面成功";
    }

    @RequestMapping("/visitUserPage")
    public String visitUserPage() {
        log.info("访问user页面成功");
        return "访问user页面成功";
    }

    @RequestMapping("/visitIndexPage")
    public String visitIndexPage() {
        log.info("访问index页面成功");
        return "访问index页面成功";
    }

}


